export default {
  mobile: {
    pattern: /^1[34578]\d{9}$/,
    message: '请输入正确手机号码',
    trigger: 'blur'
  },
  number: {
    pattern: /^\d+$/,
    message: '请输入正确的数字',
    trigger: 'blur'
  },
  null: {
    pattern: /^(?!(\s+$))/,
    message: '内容不能为空格',
    trigger: 'blur'
  },
  tel: {
    pattern: /^0\d{2,3}-[1-9]\d{6,7}$/,
    message: '请输入正确的固定电话',
    trigger: 'blur'
  },
  email: {
    pattern: /^[a-zA-Z0-9._-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/,
    message: '请输入正确的邮箱',
    trigger: 'blur'
  },
  carNum: {
    pattern: /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Za-z]{1}[A-Za-z]{1}[A-Za-z0-9]{4}[A-Za-z0-9挂学警港澳]{1}$/,
    message: '请输入正确车牌号'
  },
  idNum: {
    pattern: /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/,
    message: '请输入正确的身份证'
  },
  money: {
    pattern: /(^[1-9](\d+)?(\.\d{1,2})?$)|(^(0){1}$)|(^\d\.\d{1,2}?$)/,
    message: '请输入正确的金额,保留两位小数'
  },
  tonnage: {
    pattern: /(^[1-9](\d+)?(\.\d{1,2})?$)|(^(0){1}$)|(^\d\.\d{1,2}?$)/,
    message: '请输入正确的吨位'
  },
  rebate: {
    pattern: /(^[1-9](\d+)?(\.\d{1,2})?$)|(^(0){1}$)|(^\d\.\d{1,2}?$)/,
    message: '请输入正确的返点'
  },
  bankNum: {
    pattern: /^([1-9]{1})(\d{14}|\d{18})$/,
    message: '请输入正确的银行卡号'
  },
  pointNum: {
    pattern: /^[+-]?(0|([1-9]\d*))(\.\d+)?$/,
    message: '请输入正确的数字,可以带小数点',
    trigger: 'blur'
  }
}
